<template>
  <!-- 首页公用title -->
  <div class="title_box">
    <div class="left">{{ titleInfo.title }}</div>
    <a class="more" v-if="titleInfo.showMore" :href="titleInfo.path">
      更多
      <img src="https://static.dzyxzx.cn/jkbpc/more.png">
    </a>
  </div>
</template>

<script setup>
const props = defineProps({
  titleInfo: Object,
})
</script>

<style lang="less">
.title_box {
  width: 1200px;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  .left {
    font-size: 24px;
    font-weight: bold;
  }

  .more {
    width: 51px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
    cursor: pointer;

    &:hover {
      color: #FF3F29;
    }
  }
}
</style>